/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <cstdio>

using namespace std;

int main_78()
{
    int n,ai,sum=0;
    scanf("%d",&n);
    for (int i=0;i<n ;++i )
    {
        scanf("%d",&ai);
        if (1==ai%2)
        {
            sum+=ai;
        }
    }
    printf("%d\n",sum);
	return 0;
}
